﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Nav.ascx.cs" Inherits="TimKen.Web.UserControls.Nav" %>
<table id="tbUserLink" runat="server" visible="false" class="nav">
    <tr>
        <td>
            <a href="/Favorite/FavoriteView.aspx">
                <%=GetLangString("Favorite")%>
            </a>&nbsp;&nbsp;
            <% if (CurrentUserType == TimKen.DataEntity.UserType.FactoryBuyer)
               { %>
            <a href="/Cart/View.aspx">
                <%=GetLangString("ShoppingCart")%>(<%=totalCartCount%>)</a> &nbsp;&nbsp; <a href="/Order/OrderList.aspx">
                    <%=GetLangString("OrderHistory")%>
                </a>&nbsp;&nbsp;
            <%} %>
            <% if (CurrentUserType == TimKen.DataEntity.UserType.FactoryFinance)
               { %>
            <a href="/Order/CheckAccount.aspx">
                <%=GetLangString("CheckAccount")%></a> &nbsp;&nbsp;<%=GetNewMessageAmount()%>
            <%} %>
        </td>
        <td align="right">
            <%=GetLangString("Hello")%>!
            <%=CurrentUserName%>&nbsp;&nbsp;&nbsp;&nbsp; <strong>[<a href="/User/Logout.aspx"><%=GetLangString("Logout")%></a>]</strong>&nbsp;&nbsp;
        </td>
    </tr>
</table>
